﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace CleanToolkit.Comparison.DiffModel
{
    [XmlRootAttribute("FieldDiffs", Namespace = "http://www.mondeil.fr")]
    public class FieldDiffs
    {
        /// <summary>
        /// ID du SPField
        /// </summary>
        [XmlAttribute]
        public string ID { get; set; }

        /// <summary>
        /// ID du SPField
        /// </summary>
        [XmlAttribute]
        public string Name { get; set; }

        /// <summary>
        /// Liste des attributs différents
        /// </summary>
        [XmlArray("Diffs", Namespace = "http://www.mondeil.fr")]
        public List<FieldDiffInfo> Diffs { get; set; }

        /// <summary>
        /// Constructeur par defaut
        /// </summary>
        public FieldDiffs()
        {
            // Initialisation de la structure d'informations
            this.Diffs = new List<FieldDiffInfo>();
        }
    }
}
